package com.jy.rhin.infra.cda.dao.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.jy.rhin.infra.cda.dao.ErTongBJKDao;
import com.jy.rhin.infra.cda.mapper.ErTongBJKMapper;
import com.jy.rhin.infra.cda.xinshenger.ErTongBJKVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class ErTongBJKDaoImpl implements ErTongBJKDao {
	@Resource
	private ErTongBJKMapper erTongBJKMapper;

	@Override
	public ErTongBJKVo getByBH(String fuWuJGBH, String erTongWYBS) {
		QueryWrapper<ErTongBJKVo> queryWrapper = new QueryWrapper<>();
		queryWrapper.eq("ERTONGWYBS", erTongWYBS);
		return erTongBJKMapper.getOne(queryWrapper);
	}

	@Override
	public ErTongBJKVo getByGERENDABS(String fuWuJGBH, String GERENDABS) {
		QueryWrapper<ErTongBJKVo> queryWrapper = new QueryWrapper<>();
		queryWrapper.eq("GERENDABS", GERENDABS);
		return erTongBJKMapper.getOne(queryWrapper);
	}

}
